package demo1;
import java.util.*;
public class test1 {
    public static void main(String[] args) {
        //System.out.println();
        int a = 10;
        // double b = 11.11;
        int c = 11;
        String d = "ddd";
        //a+=c;

        //int max = a>c?a:c;
        boolean pb = true;
        if (a > c) {
            System.out.println(a);
        } else {
            System.out.println(c);
        }

        if(a<c){
            System.out.println(c);
        }else{
            System.out.println(a);
        }
        System.out.println(a);
        System.out.println(new Date());
       switch (c) {
           case 1:
               System.out.println(1);
               break;
               case 2:
                   System.out.println(2);
                   break;
                   default:
                       System.out.println(c);
                       break;
       }
       int he=0;
       for(int i=1;i<=100;i++){
           if(i % 2 ==0) {
               he += i;
           }
          // System.out.println(he);
       }
        System.out.println(he);

        double i=0.1;
        int j=0;
        while(i<8844430){
           // System.out.println(i);
           i= i*2;
           j++;
            //System.out.println(j);
        }
        System.out.println(j);

        int[] arr1 = {1,2,3};
        String[] arr2 = {"a","b","c"};

        for(int k=0;k<arr2.length;k++){
            System.out.println(arr2[k]);
        }

        for (int i1 = 0; i1 < arr1.length; i1++) {
            System.out.println(arr1[i1]);
        }
        String[] arr3 = new String[30];
        arr3[0] = "a";
        String[] arr4 = new String[10];

        palyGame();

    }

    public static void palyGame(){
        System.out.println("玩游戏");
    }

}